package com.logic.modular.game.player.skill.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.comment.pojo.domain.logic.domain.PlayerSkill;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;

/**
 * 游戏账户技能数据(PlayerSkill)表数据库访问层
 *
 * @author cxy
 * @since 2024-07-18 10:05:14
 */
public interface PlayerSkillMapper extends BaseMapper<PlayerSkill> {
    @Select("select count(*) from player_skill where uid = #{playerId} and star = #{skillMaxStar}")
    long countMaxStar(@Param("playerId") Long playerId, @Param("skillMaxStar") Integer skillMaxStar);

    @Select("select count(*) from player_skill where uid = #{playerId}")
    long count(Long playerId);
}

